<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Mall_card.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Mall_card.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '卡信息',
                    name: 'Mall_card',
                    url: "/Cards/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'card_code',title:'编码',type:'string',width:120,align:'left',sortable:true},
                       {field:'name',title:'名称',type:'string',width:120,align:'left'},
                       {field:'card_group',title:'组',type:'string',width:90,align:'left'},
                       {field:'category_id',title:'类别编号',type:'string',width:90,align:'left'},
                       {field:'category_name',title:'类别名称',type:'string',width:220,align:'left'},
                       {field:'snowseason',title:'雪季',type:'string',width:220,require:true,align:'left'},
                    //    {field:'code1',title:'code1',type:'string',width:120,align:'left'},
                    //    {field:'code2',title:'code2',type:'string',width:120,align:'left'},
                    //    {field:'code3',title:'code3',type:'string',width:120,align:'left'},
                       {field:'type_code',title:'类型编码',type:'string',width:220,align:'left'},
                       {field:'status',title:'状态',type:'int',width:90,align:'left'},
                       {field:'deposit',title:'订金',type:'decimal',width:90,align:'left'},
                       {field:'price',title:'价钱',type:'decimal',width:90,align:'left'},
                    //    {field:'extra',title:'extra',type:'string',width:220,align:'left'},
                    //    {field:'flag',title:'flag',type:'int',width:90,align:'left'},
                       {field:'id',title:'卡表主键',type:'string',width:90,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'lastest_used_time',title:'最近一次使用时间',type:'bigint',width:90,align:'left'},
                       
                       {field:'operator_account',title:'操作员帐户',type:'string',width:220,align:'left'},
                       //{field:'operator_id',title:'操作员id',type:'string',width:90,align:'left'},
                       {field:'operator_name',title:'操作员名称',type:'string',width:90,align:'left'},
                       
                       {field:'remark',title:'备注',type:'string',width:120,align:'left'},
                       
                       {field:'create_time',title:'入库时间',type:'bigint',width:90,align:'left'},
                      
                       
                       {field:'unrecycle',title:'不回收',type:'sbyte',width:90,align:'left'},
                      // {field:'version',title:'版本',type:'int',width:90,align:'left'}
                      ],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
